/*
 * File Name:               DemoTextWindow.cs
 *
 * Description:             普通类
 * Author:                  lisiyu <576603306@qq.com>
 * Create Date:             2016/11/23
 */

using UnityEngine.UI;

public class DemoTextWindow : UIWindow
{
    private Button mBtnClose;

    protected override void onCacheComponents()
    {
        mBtnClose = getComponent<Button>(0);
    }

    protected override void onClearComponents()
    {
        mBtnClose = null;
    }

    protected override void onAddListeners()
    {
        mBtnClose.addListener(closeSelf);
    }

    protected override void onRemoveListeners()
    {
    }

    protected override void onOpen(object args)
    {
    }

    protected override void onClose()
    {
    }
}